package com.zxm.musicList;

import com.zxm.play.Animation;
import com.zxm.play.AudioPlay;

public class demo1 {
    public static void main(String[] args) {

        String sub ="5-- 0  2- 0  7- 0  0  0";

        String main = "5+  5  6  7  1+ 2+ 3+ 4+";

        // 播放，相当于开两个线程
        new AudioPlay(200).loadNotes(sub).start();
        new AudioPlay(200).loadNotes(main).start();

        //控制台打印
        new Animation(200).loadNotes(main).start();


    }
}
